package com.d2.modules.system.dept.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.d2.modules.system.dept.entity.Dept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IDeptMapper extends BaseMapper<Dept> {
    /**
     * 获取所有后代
     * @param id 部门ID
     * @return 所有后代
     */
    List<Dept> selectChildrenById(@Param("id") Long id);
}
